package cn.mothin.action.common;

import org.springframework.beans.factory.annotation.Autowired;

import cn.mothin.frame.core.annotation.NeedLogon;
import cn.mothin.frame.core.base.BaseAction;
import cn.mothin.service.common.SelectorService;
import cn.mothin.vo.common.SelectorForm;

@SuppressWarnings("serial")
public class SelectorAction extends BaseAction {
    private SelectorForm form = new SelectorForm();

    @Autowired
    private SelectorService systemUserSelectorService;

    @Override
    public Object getModel() {
        return form;
    }

    @NeedLogon
    public String user() {
        return renderJson(systemUserSelectorService.querySystemUserJson(form));
    }

}
